home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / Tools / freeWAIS-sf-1.1 / Imakefile < prev    next >
Makefile  |  1995-01-09  |  17KB  |  486 lines

  1. ############################ -*- Mode: Makefile -*- ###########################
  2. ## Imakefile -- 
  3. ## ITIID           : $ITI$ $Header $__Header$
  4. ## Author          : Ulrich Pfeifer
  5. ## Created On      : Tue Mar  8 14:40:27 1994
  6. ## Last Modified By: Ulrich Pfeifer
  7. ## Last Modified On: Tue Jan 10 18:14:40 1995
  8. ## Update Count    : 138
  9. ## Status          : Unknown, Use with caution!
  10. ###############################################################################
  11.  
  12. #include "Install.tmpl"
  13.  
  14.             SHELL = /bin/sh
  15.  
  16. #ifdef SYSVREGEXP
  17.         REGEXPDIR = regexp
  18. #endif
  19. #ifdef ISO
  20.          CTYPEDIR = ctype
  21. #endif
  22. #ifdef LOCAL_SEARCH
  23.           TESTDIR = FIELD-EXAMPLE
  24. #endif
  25. #ifdef HAVE_ATHENA
  26.              XDIR = x
  27. #endif
  28. #define CTYPE
  29.           SUBDIRS =  $(CTYPEDIR) $(REGEXPDIR) \
  30.                         lib ir ui bin doc $(XDIR) $(TESTDIR)
  31.               TOP = .
  32.  
  33. #define IHaveSubdirs
  34. #define PassCDebugFlags CC=$(CC) STD_DEFINES="$(STD_DEFINES)" \
  35.                 CDEBUGFLAGS="$(CDEBUGFLAGS)" BINDIR="$(BINDIR)" \
  36.                 MANDIR="$(MANDIR)" INSTALLROOT=$(INSTALLROOT) \
  37.                 LISPDIR="$(LISPDIR)" XAPPLOADDIR="$(XAPPLOADDIR)"
  38.  
  39.              SRCS = config.c
  40. #ifdef BSDI
  41.          BSDIDIRS = bsdi \
  42.                     bsdi/lex \
  43.                     bsdi/lib \
  44.         BSDIFILES = bsdi/Makefile.ir \
  45.                     bsdi/Makefile.lib \
  46.                     bsdi/Makefile.ui \
  47.                     bsdi/README \
  48.                     bsdi/ir.patch \
  49.                     bsdi/lex/Makefile \
  50.                     bsdi/lex/header.c \
  51.                     bsdi/lex/ldefs.c \
  52.                     bsdi/lex/lmain.c \
  53.                     bsdi/lex/ncform \
  54.                     bsdi/lex/nrform \
  55.                     bsdi/lex/once.c \
  56.                     bsdi/lex/parser.y \
  57.                     bsdi/lex/sub1.c \
  58.                     bsdi/lex/sub2.c \
  59.                     bsdi/lex/y.tab.c \
  60.                     bsdi/lib.patch \
  61.                     bsdi/lib/alphasort.c \
  62.                     bsdi/lib/ftwtest.c \
  63.                     bsdi/lib/scandir.c \
  64.                     bsdi/lib/scantest.c \
  65.                     bsdi/regexp.h
  66. #endif /* BSDI */
  67.           RELEASE = FREE_WAIS_SF_VERSION
  68.          DISTNAME = _DISTNAME_
  69.          DISTDIRS = $(BSDIDIRS) \
  70.                     bin \
  71.                     doc \
  72.                     doc/CNIDR \
  73.                     doc/original-TM-wais \
  74.                     doc/original-TM-wais/manl \
  75.                     doc/SF \
  76.                     ir \
  77.                     lib \
  78.                     ui \
  79.                     x \
  80.                     FIELD-EXAMPLE \
  81.                     regexp \
  82.                     ctype 
  83.  
  84.         DISTFILES = $(BSDIFILES) \
  85.                     COPYRIGHT \
  86.                     ChangeLog \
  87.                     DOCUMENTS \
  88.                     Defaults.tmpl \
  89.                     Defaults.tmpl.in \
  90.                     Defaults.tmpl.top \
  91.                     FIELD-EXAMPLE/BOOLEAN.should \
  92.                     FIELD-EXAMPLE/COMPLEX.should \
  93.                     FIELD-EXAMPLE/FIELD.should \
  94.                     FIELD-EXAMPLE/GERMAN.should \
  95.                     FIELD-EXAMPLE/Imakefile \
  96.                     FIELD-EXAMPLE/LIT/**/ERAL.should \
  97.                     FIELD-EXAMPLE/Makefile.in \
  98.                     FIELD-EXAMPLE/NUMERIC.should \
  99.                     FIELD-EXAMPLE/PARTIAL.should \
  100.                     FIELD-EXAMPLE/PLAIN.should \
  101.                     FIELD-EXAMPLE/TEST \
  102.                     FIELD-EXAMPLE/TEST.german \
  103.                     FIELD-EXAMPLE/test.fde \
  104.                     FIELD-EXAMPLE/test.fmt \
  105.                     FIELD-EXAMPLE/testg.fmt \
  106.                     FIELD-EXAMPLE/ChangeLog \
  107.                     Imakefile \
  108.                     Install.tmpl \
  109.                     Install.tmpl.in \
  110.                     Makefile.in \
  111.                     Makefile.original \
  112.                     README \
  113.                     TODO \
  114.                     acconfig.h \
  115.                     bin/Imakefile \
  116.                     bin/Makefile.original \
  117.                     bin/README \
  118.                     bin/check-sources.script \
  119.                     bin/getaddrs.script \
  120.                     bin/index.mail.script \
  121.                     bin/server_stats.script \
  122.                     bin/start.myserver.script \
  123.                     bin/stats.awk \
  124.                     bin/swais.sh.script \
  125.                     bin/test.waisindex \
  126.                     bin/wais-gif-display.script \
  127.                     bin/wais-html-display.script \
  128.                     bin/wais-jfif-display.script \
  129.                     bin/wais-jpeg-display.script \
  130.                     bin/wais-pict-display.script \
  131.                     bin/wais-ppm-display.script \
  132.                     bin/wais-tiff-display.script \
  133.                     bin/waisretrieve.script \
  134.                     bin/waissearch-modem \
  135.                     bin/ws.script \
  136.                     config.c \
  137.                     configure \
  138.                     configure.in \
  139.                     ctype/Imakefile \
  140.                     ctype/Makefile.in \
  141.                     ctype/ctest.c \
  142.                     ctype/ctype.h \
  143.                     ctype/ctype.tmpl \
  144.                     ctype/mkctype.c \
  145.                     ctype/ChangeLog \
  146.                     doc/CNIDR/FAQ.txt \
  147.                     doc/CNIDR/INSTALLATION \
  148.                     doc/CNIDR/NEXT-RELEASE \
  149.                     doc/CNIDR/README \
  150.                     doc/CNIDR/RELEASE-NOTES \
  151.                     doc/Imakefile \
  152.                     doc/SF/freeWAIS-sf.dvi \
  153.                     doc/SF/freeWAIS-sf.ps \
  154.                     doc/SF/freeWAIS-sf.tex \
  155.                     doc/SF/html.sty \
  156.                     doc/original-TM-wais/FAQ.txt \
  157.                     doc/original-TM-wais/Imakefile \
  158.                     doc/original-TM-wais/Makefile \
  159.                     doc/original-TM-wais/README \
  160.                     doc/original-TM-wais/bibliography.txt \
  161.                     doc/original-TM-wais/cm-servers.ps \
  162.                     doc/original-TM-wais/doc-ids.txt \
  163.                     doc/original-TM-wais/helpful-scripts.txt \
  164.                     doc/original-TM-wais/manl/Imakefile \
  165.                     doc/original-TM-wais/manl/Makefile \
  166.                     doc/original-TM-wais/manl/waisindex.man \
  167.                     doc/original-TM-wais/manl/waisq.man \
  168.                     doc/original-TM-wais/manl/waissearch.man \
  169.                     doc/original-TM-wais/manl/waisserver.man \
  170.                     doc/original-TM-wais/manl/xwais.man \
  171.                     doc/original-TM-wais/manl/xwaisq.man \
  172.                     doc/original-TM-wais/overview.txt \
  173.                     doc/original-TM-wais/protspec.txt \
  174.                     doc/original-TM-wais/question.txt \
  175.                     doc/original-TM-wais/source.txt \
  176.                     doc/original-TM-wais/wais-concepts.txt \
  177.                     doc/original-TM-wais/wais-corp.txt \
  178.                     doc/original-TM-wais/wais.el.txt \
  179.                     doc/original-TM-wais/waisindex.txt \
  180.                     doc/original-TM-wais/waisprot.txt \
  181.                     doc/original-TM-wais/waisq.txt \
  182.                     doc/original-TM-wais/waissearch.hlp \
  183.                     doc/original-TM-wais/waissearch.txt \
  184.                     doc/original-TM-wais/waisserver.txt \
  185.                     doc/original-TM-wais/waistation_users_guide.txt \
  186.                     doc/original-TM-wais/xwais.txt \
  187.                     doc/original-TM-wais/xwaisq.txt \
  188.                     doc/original-TM-wais/z3950-spec.txt \
  189.                     install.sh \
  190.                     ir/ChangeLog \
  191.                     ir/DESIGN \
  192.                     ir/Imakefile \
  193.                     ir/Makefile.in \
  194.                     ir/Makefile.original \
  195.                     ir/README \
  196.                     ir/README_FIELDS \
  197.                     ir/analyse_str.h \
  198.                     ir/boolean_op.c \
  199.                     ir/boolean_op.h \
  200.                     ir/byte_order.h \
  201.                     ir/cdialect.h \
  202.                     ir/cutil.c \
  203.                     ir/cutil.h \
  204.                     ir/docid.c \
  205.                     ir/docid.h \
  206.                     ir/field_index.c \
  207.                     ir/field_index.h \
  208.                     ir/field_l.c \
  209.                     ir/field_l.l \
  210.                     ir/field_search.c \
  211.                     ir/field_search.h \
  212.                     ir/field_token.h \
  213.                     ir/field_y.c \
  214.                     ir/field_y.h \
  215.                     ir/field_y.y \
  216.                     ir/futil.c \
  217.                     ir/futil.h \
  218.                     ir/hash.c \
  219.                     ir/hash.h \
  220.                     ir/ir.c \
  221.                     ir/ir.h \
  222.                     ir/ircfiles.c \
  223.                     ir/ircfiles.h \
  224.                     ir/irdirent.h \
  225.                     ir/irext.h \
  226.                     ir/irfileio.c \
  227.                     ir/irfileio.h \
  228.                     ir/irfiles.c \
  229.                     ir/irfiles.h \
  230.                     ir/irhash.c \
  231.                     ir/irhash.h \
  232.                     ir/irinv.c \
  233.                     ir/irinv.h \
  234.                     ir/irkeywords.c \
  235.                     ir/irretrvl.c \
  236.                     ir/irretrvl.h \
  237.                     ir/irsearch.c \
  238.                     ir/irsearch.h \
  239.                     ir/irsparse.c \
  240.                     ir/irsparse.h \
  241.                     ir/irtfiles.c \
  242.                     ir/irtfiles.h \
  243.                     ir/irverify.c \
  244.                     ir/irverify.h \
  245.                     ir/list.c \
  246.                     ir/list.h \
  247.                     ir/lock.c \
  248.                     ir/lock.h \
  249.                     ir/panic.c \
  250.                     ir/panic.h \
  251.                     ir/prototypes.h \
  252.                     ir/query_l.c \
  253.                     ir/query_l.l \
  254.                     ir/query_token.h \
  255.                     ir/query_y.c \
  256.                     ir/query_y.y \
  257.                     ir/sersrch.c \
  258.                     ir/server-single.c \
  259.                     ir/server.h \
  260.                     ir/sighash.c \
  261.                     ir/sighash.h \
  262.                     ir/sigindex.h \
  263.                     ir/sigsrch.c \
  264.                     ir/sigsrch.h \
  265.                     ir/sockets.c \
  266.                     ir/sockets.h \
  267.                     ir/soundex.c \
  268.                     ir/soundex.h \
  269.                     ir/stem.h \
  270.                     ir/stemmer.c \
  271.                     ir/stemmer.h \
  272.                     ir/stoplist.c \
  273.                     ir/stoplist.h \
  274.                     ir/synonym.c \
  275.                     ir/synonym.h \
  276.                     ir/syslog.c \
  277.                     ir/syslog.h \
  278.                     ir/transprt.c \
  279.                     ir/transprt.h \
  280.                     ir/trie.c \
  281.                     ir/trie.h \
  282.                     ir/udping.c \
  283.                     ir/ui-local.c \
  284.                     ir/ui.c \
  285.                     ir/ui.h \
  286.                     ir/ustubs.c \
  287.                     ir/ustubs.h \
  288.                     ir/version.h \
  289.                     ir/waisindex.c \
  290.                     ir/waisserver.c \
  291.                     ir/weight.c \
  292.                     ir/weight.h \
  293.                     ir/wmessage.c \
  294.                     ir/wmessage.h \
  295.                     ir/wprot.c \
  296.                     ir/wprot.h \
  297.                     ir/wutil.c \
  298.                     ir/wutil.h \
  299.                     ir/zprot.c \
  300.                     ir/zprot.h \
  301.                     ir/ztype1.c \
  302.                     ir/ztype1.h \
  303.                     ir/zutil.c \
  304.                     ir/zutil.h \
  305.                     iubio-wais.news \
  306.                     iubio-wais.readme \
  307.                     lib/Imakefile \
  308.                     lib/Makefile.in \
  309.                     lib/Makefile.original \
  310.                     lib/README \
  311.                     lib/alloca.c \
  312.                     lib/alphasort.c \
  313.                     lib/freedir.c \
  314.                     lib/ftw.c \
  315.                     lib/ftw.man \
  316.                     lib/ftwtest.c \
  317.                     lib/pdftw.h \
  318.                     lib/scandir.c \
  319.                     lib/scandir.man \
  320.                     lib/scantest.c \
  321.                     lib/stringtoany.c \
  322.                     lib/trunc.c \
  323.                     mkinstalldirs \
  324.                     regexp/ANNOUNCE \
  325.                     regexp/Imakefile \
  326.                     regexp/Makefile.in \
  327.                     regexp/Makefile.orig \
  328.                     regexp/README \
  329.                     regexp/cdefs.h \
  330.                     regexp/regerror.c \
  331.                     regexp/regexp.c \
  332.                     regexp/regexp.h \
  333.                     regexp/regexp.man \
  334.                     regexp/regmagic.h \
  335.                     regexp/regsub.c \
  336.                     regexp/tests \
  337.                     regexp/timer.c \
  338.                     regexp/try.c \
  339.                     sound.readme \
  340.                     ui/Imakefile \
  341.                     ui/Makefile.in \
  342.                     ui/Makefile.original \
  343.                     ui/README \
  344.                     ui/Retrieval.h \
  345.                     ui/dirname \
  346.                     ui/document.c \
  347.                     ui/document.h \
  348.                     ui/globals.h \
  349.                     ui/lisp-ui.c \
  350.                     ui/list.h \
  351.                     ui/lucid.lisp \
  352.                     ui/messages.h \
  353.                     ui/question.c \
  354.                     ui/question.h \
  355.                     ui/source.c \
  356.                     ui/source.h \
  357.                     ui/status.h \
  358.                     ui/swais.c \
  359.                     ui/uri-lucid.lisp \
  360.                     ui/util.c \
  361.                     ui/util.h \
  362.                     ui/wais-ui.c \
  363.                     ui/wais-ui.h \
  364.                     ui/wais.el.raw \
  365.                     ui/wais.h \
  366.                     ui/waisq.c \
  367.                     ui/waissearch.c \
  368.                     ui/ChangeLog \
  369.                     x/ChangeLog \
  370.                     x/Imakefile \
  371.                     x/Makefile.in \
  372.                     x/My-Makefile \
  373.                     x/MyList.c \
  374.                     x/MyList.h \
  375.                     x/MyListP.h \
  376.                     x/README \
  377.                     x/Retrieval.h \
  378.                     x/Viewport.c \
  379.                     x/Xwais.old \
  380.                     x/Xwais.raw \
  381.                     x/XwaisHELP \
  382.                     x/XwaisqHELP \
  383.                     x/cat.h \
  384.                     x/catalog.c \
  385.                     x/cr \
  386.                     x/cursor.h \
  387.                     x/dirname \
  388.                     x/display.c \
  389.                     x/display.h \
  390.                     x/filereq.c \
  391.                     x/filereq.h \
  392.                     x/list.h \
  393.                     x/makex.sh \
  394.                     x/myAsciiSink.c \
  395.                     x/myAsciiSink.h \
  396.                     x/myAsciiSinkP.h \
  397.                     x/myAsciiSrc.c \
  398.                     x/myAsciiSrc.h \
  399.                     x/myAsciiSrcP.h \
  400.                     x/qcommands.c \
  401.                     x/qcommands.h \
  402.                     x/qdisplay.c \
  403.                     x/qdisplay.h \
  404.                     x/scommands.c \
  405.                     x/scommands.h \
  406.                     x/scrolllist.h \
  407.                     x/tcommands.c \
  408.                     x/tcommands.h \
  409.                     x/text.c \
  410.                     x/text.h \
  411.                     x/util.c \
  412.                     x/util.h \
  413.                     x/xquestion.h \
  414.                     x/xstuff.h \
  415.                     x/xwais.bit \
  416.                     x/xwais.c \
  417.                     x/xwais.h \
  418.                     x/xwaisq.bit \
  419.                     x/xwaisq.c \
  420.                     x/xwaist.bit 
  421.  
  422. all:: config.status config.h
  423.  
  424. includes:: config.h
  425.  
  426. config.h: config
  427.     ./config >config.h
  428.  
  429. NormalProgramTarget(config,config.o,,,)
  430.  
  431. clean::
  432.     $(RM) config config.o
  433.  
  434. MakeSubdirs($(SUBDIRS))
  435. DependSubdirs($(SUBDIRS))
  436. InstallSubdirs($(SUBDIRS))
  437.  
  438. config.status: configure
  439.     ./configure
  440.     touch config.status
  441.     touch Install.tmpl Defaults.tmpl
  442.  
  443. Install.tmpl Defaults.tmpl: config.status Install.tmpl.in Defaults.tmpl.in
  444.     ./config.status
  445.     touch Install.tmpl Defaults.tmpl
  446.  
  447. /*
  448. configure: configure.in
  449.     autoconf
  450.  
  451. Defaults.tmpl.in: acconfig.h configure.in
  452.     autoheader
  453. */
  454.  
  455. veryclean:: clean
  456.     $(RM) config.status # Install.tmpl Defaults.tmpl
  457.     $(RM) doc/SF/freeWAIS-sf.dvi doc/SF/freeWAIS-sf.ps
  458.  
  459. NamedTargetSubdirs(veryclean,$(SUBDIRS),verb,PassCDebugFlags,veryclean)
  460.  
  461. DependTarget()
  462. NamedMakeSubdirs(install.lib,lib ir)
  463.  
  464. dist: $(DISTDIRS) $(DISTFILES) 
  465.     @rev=$(RELEASE) ; \
  466.     echo "Creating $(DISTNAME)-$$rev" ; \
  467.     mkdir $(DISTNAME)-$$rev ; \
  468.     for dir in $(DISTDIRS) ; do                    \
  469.         mkdir $(DISTNAME)-$$rev/$$dir ;                \
  470.     done ; \
  471.     for file in $(DISTFILES) ; do                    \
  472.         ln    $$file `echo $(DISTNAME)-$$rev/$$file                \
  473.             | sed -e 's:/[^/]*$$::'` ;            \
  474.     done ; \
  475.     for file in $(DISTFILES) ; do                    \
  476.         test -r $(DISTNAME)-$$rev/$$file                \
  477.            || cp -p $$file `echo $(DISTNAME)-$$rev/$$file        \
  478.             | sed -e 's:/[^/]*$$::'` ;            \
  479.     done ; \
  480.     echo "tarring to $(DISTNAME)-$$rev.tgz" ; \
  481.     /usr/local/unsupported/bin/gtar -c -z -f $(DISTNAME)-$$rev.tgz $(DISTNAME)-$$rev ; \
  482.     rm -rf $(DISTNAME)-$$rev
  483.  
  484. TAGS: $(DISTFILES) 
  485.     etags $(DISTFILES)
  486.